<?php
session_start();
mysql_connect("localhost", "", "");
mysql_query("USE stats_syslog");
$query = "SELECT ReasonExt FROM maillog WHERE ReasonExt like '%[%'";
$result = mysql_query($query);
$numrows = mysql_num_rows($result);
print "Number of records = $numrows";
?>
